<template>
  <div class='wrapper' ref='wrapper'>
    <div class='content'>
    <slot></slot>
  </div>
  </div>
</template>

<script>
import BScroll from 'better-scroll'
export default {
name:'scroll',
data() {
  return {scroll:null}
},
mounted() {
 this.scroll= new BScroll(this.$refs.wrapper,{
  })
this.$nextTick(()=>{
  if(!this.scroll) {
 this.scroll= new BScroll(this.$refs.wrapper,{
  })
  console
  }
}
})
}
}
</script>

<style>

</style>